<%@ page contentType="text/html; charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<c:import url="/top.do"></c:import>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="content">
					<p id="whereami">
					<html:link action="/main.do">首页</html:link>
					</p>

					
					<c:forEach items="${datas}" var="data">
					<table class="table"><tr ><td>${data.name}-${data.note}</td></tr></table>
					<table class="table">
						<tr class="table_header">
							<td>版块名</td>
							<td>主题数</td>
							<td>帖子数</td>
							
						</tr>
						<c:forEach items="${data.plats}" var="plat">
							<c:if test="${plat.visible == true && plat.parent==null}">
							<tr class= "row1">
								<td><html:link action="/postList.do?pid=${plat.id}">${plat.name }</html:link>
								<br/>${plat.note}
								</td>
								<td>${plat.totalPost}</td>
								<td>${plat.totalPosts}</td>
							</tr>
							</c:if>
						</c:forEach>
					</table>
					</c:forEach>
					
				<p></p>
				</div>
			</div>
	
		</div>
	</body>
</html>
<c:import url="/foot.do"></c:import>